home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000110_icon-group-sender _Mon Jun 29 08:42:08 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA06781
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 29 Jun 1998 08:42:06 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA30182; Mon, 29 Jun 1998 08:41:55 -0700
Message-Id: <199806291302.PAA27566@capway.com>
From: "Vladimir Grodzenski" <grodzens@capway.com>
To: icon-group@optima.CS.Arizona.EDU
Date: Mon, 29 Jun 1998 15:02:12 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
Subject: Bug in FillRectangle function ?
Reply-To: <vladimir.grodzenski@capway.com>
Cc: jeffery@cs.utsa.edu
Priority: urgent
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1282
(I am using the last Windows Icon downloaded from -UTSA- FTP site)
Here is just a very quick note on one example from Graphics
book which uses "drawop=reverse" attribute (i.e. drawing the same
figure twice in "reverse" mode must erase the figure).
Page 88. (or on the CD, Examples Chapter 4, glide.icn), the
following example does not work:
WAttrib("drawop=reverse")
every x := 1 to 100 do {
FillRectangle(x, 100, 10, 20)
WDelay(1)
FillRectangle(x, 100, 10, 20)
}
Here the rectangle is simply not filled!
The effect may be obtained with the different code:
every x := 1 to 100 do {
WAttrib("drawop=copy")
FillRectangle(x, 100, 10, 20)
WDelay(1)
WAttrib("drawop=reverse")
FillRectangle(x, 100, 10, 20)
}
I also tried the DrawCircle(), DrawRectangle() and even
FillCircle() instead of FillRectangle(). All of these functions
worked fine in the way described in the Graphics book.
Well, assuming that FillRectangle is just buggy and all Draw***()
functions work with "drawop=reverse" attribute, I am surprised that
DrawString() does not. Why doesn't it?
Vladimir Grodzenski
=================================================
E-mail: vladimir.grodzenski@capway.com
CompuServe: 100700,526
=================================================